package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HeadlerController {

//    通过controller返回html页面
    @GetMapping("/{url}")
    public String url(@PathVariable("url") String url){
        return url;
    }
}
